package com.glink.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glink.manage.domain.SilentResultBean;
import com.glink.manage.vo.view.AlarmInfoVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author  qiushaoshan
 * @since  2025-01-20
 */
public interface SilentResultMapper extends BaseMapper<SilentResultBean> {

    /**
     * 根据工程信息统计告警数量
     * @param workIdList 工程ID
     * @param startDate 开始日期
     * @param startDate 结束日期
     * @return 统计信息
     */
    List<AlarmInfoVO> countAlarmInfoTodayByWorkIdInAndHandleTimeBetween(@Param("workIdList") List<String> workIdList, @Param("startDate") LocalDateTime startDate, @Param("endDate") LocalDateTime endDate, @Param("codeType") String codeType);
}
